<%@ Page Language="C#" AutoEventWireup="true" CodeFile="listWindows.aspx.cs" Inherits="Private_Config_Users_listWindows" %>
<%@ Register TagPrefix="Flux" Namespace="Deepcode.Flux.Core.UI.Controls" Assembly="Deepcode.Flux.Core" %>
<html>
<head runat="server">
	<link href="../../../Asset/Style/GeneralStyle.css" rel="stylesheet" type="text/css" />

	<script language="javascript">
	function ConfirmDelete()
	{
		if( confirm("Are you sure you want to delete this user?")) return true;
		return false;
	}
	</script>
</head>
<body class="nopad">
<form id="form1" runat="server">
<Flux:HostTable runat="server">

<Flux:CollapseSection runat="server" Expanded="true" Title="Record Navigation" id="PagerSection" WithFooter="false">
	<Flux:DataPager runat="server" ID="datapager" linkgrid="datagrid"/>
</Flux:CollapseSection>

<Flux:Section runat="server" Title="Data">
<Flux:StandardDataGrid runat="server" ID="datagrid" DataKeyField="PK_ID" ClickRowSelect="False" AllowSorting="true" CurrentSort="EmailAddress">
	<Columns>
		<asp:BoundColumn SortExpression="NT_Username" DataField="NT_Username" ReadOnly="True" HeaderText="Identity"></asp:BoundColumn>
		<asp:BoundColumn SortExpression="EmailAddress" DataField="EmailAddress" ReadOnly="True" HeaderText="EMail"></asp:BoundColumn>
		<asp:BoundColumn SortExpression="RealName" DataField="RealName" ReadOnly="True" HeaderText="Name"></asp:BoundColumn>
		<asp:TemplateColumn HeaderText="Options">
		<ItemTemplate>
			<asp:LinkButton Runat="server" ID="btnEdit" CssClass="SafeLink" CommandName="Edit">Edit</asp:LinkButton>
			<asp:LinkButton Runat="server" ID="btnDelete" CssClass="DangerLink" CommandName="Delete">Delete</asp:LinkButton>
		</ItemTemplate>
	</asp:TemplateColumn>
	</Columns>
</Flux:StandardDataGrid>
</Flux:Section>

<Flux:Section runat="server">
<Flux:PadBox CssClass="Pad5Button" runat="server">
	<asp:Button Runat="server" CssClass="button" ID="btnAddNew" Text="Add new user" OnClick="btnAddNew_Click"/>
</Flux:PadBox>
</Flux:Section>

</Flux:HostTable>
</form>
</body>
</html>
